import * as alphaTab from '@coderline/alphatab';
import type { MetadataTagDefinition } from '@coderline/alphatab-alphatex/types';

export const ae: MetadataTagDefinition = {
    tag: '\\ae',
    snippet: '\\ae $1 $0',
    shortDescription: 'Specify the alternate ending repeats.',
    longDescription: `Specifies on which repeats a bar should be played (to build alternate endings).`,
    signatures: [
        {
            parameters: [
                {
                    name: 'ending',
                    shortDescription: 'The repeats on which the bar should be played',
                    parseMode: alphaTab.importer.alphaTex.ArgumentListParseTypesMode.RequiredAsValueList,
                    type: alphaTab.importer.alphaTex.AlphaTexNodeType.Number
                }
            ]
        }
    ],
    examples: `
        \\ro 1.3 2.3 3.3 4.3 | \\ae (1 2 3) 5.3 6.3 7.3 8.3 | \\ae 4 \rc 4 5.3 8.3 7.3 6.3
        `
};
